 <div class="col-md-3 menu">
    <div class="panel panel-warning">
        <div class="panel-heading">随笔分类</div>
        <div class="panel-body">
            {% for cate in cate_list %}
                <p><a href="{% url 'home_site2' user.username 'category' cate.0 %}">{{ cate.0 }}</a> ({{ cate.1 }})</p>
            {% endfor %}
        </div>
    </div>
    <div class="panel panel-danger">
        <div class="panel-heading">文章标签</div>
        <div class="panel-body">
            {% for tag in tag_list %}
                <p><a href="{% url 'home_site2' user.username 'tag' tag.0 %}">{{ tag.0 }}</a> ({{ tag.1 }})</p>
            {% endfor %}
        </div>
    </div>

    <div class="panel panel-success">
        <div class="panel-heading">随笔归档</div>
        <div class="panel-body">
            {% for data in article_month_count %}
                <p><a href="{% url 'home_site2' user.username 'archive' data.0|date:'Y-m' %}">
                    {{ data.0 |date:"Y-m" }}</a>
                    ({{ data.1 }})</p>
            {% endfor %}
        </div>
    </div>

</div>